Copyright(C) 1994 Terumasa KODAKA , Takeshi KONO


■Unused [Normal]
In normal mode, the INT 1Dh handler is IRET.

■Graphics BIOS [Hi-Res]
Overview of the graphics BIOS
               o In Hi-Res mode, the graphics BIOS for drawing graphics is prepared by a program in the ROM. This is a function that combines the graphics BIOS in normal mode and Graph LIO. However, it is not compatible with normal mode. It is similar to the graphics BIOS of the PC-98LT/HA.
               o The graphics BIOS supports monochrome and 16-color. The H98 256-color mode is not supported.
               o The graphics BIOS is explained in detail in the Technical Data Book, so this book only provides the minimum information.

Table            Graphics modes in high-resolution mode

High-resolution ---+---Monochrome---------1120x750 dots
                   +---16-color-----------1120x750 dots
                   +---H98 256-color------1120x750 dots
               ・"Monochrome" and "16-color" are graphics systems that must be supported in high-resolution mode.
               ・"H98 256-color" is supported by PC-H98 + PC-H98-E02 (256-color board).
                 * PC-H98 model80, 90, and 105, PC-H98T model2C come standard with a 256-color board
                 * PC-H98T model1 and 2 cannot be equipped with a 256-color board


INT 1Dh - Function 00h (Hi-Res)
Classification   GRAPH BIOS
Name             Graphic BIOS initialization (GINIT)
Target           Hi-Res
Input            AH=00h
                 DS=Graphic BIOS work area segment
                 DS:0100h(DWORD)=Entry address of interrupt processing routine
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 01h (Hi-Res)
Classification   GRAPH BIOS
Name             Mode setting (GSCREEN)
Target           Hi-Res
Input            AH=01h
                 DS=Graphic BIOS work area segment
                 DS:0100h(BYTE)=Screen mode
                   00h: Color graphic mode
                   01h: Monochrome graphic mode
                   FFh: No mode change
                 DS:0101h(BYTE)=Screen switch
                   00h: Graphic screen display, normal drawing
                   01h: Graphic screen display, high-speed drawing
                   02h: Graphic screen display, no normal drawing
                   03h: Graphic screen display, no high-speed drawing
                   FFh: No mode change
                 DS:0102h(BYTE)=Active screen
                   00h: Page 0
                   01h: Page 1
                   02h: Page 2
                   03h: Page 3
                   FFh: No mode change
                   * Only page 0 can be specified in color graphic mode
                 DS:0103h(BYTE)=Display screen
                   bit 7-4: Specify 0
                   bit 3: Page 3
                   bit 2: Page 2
                   bit 1: Page 1
                   bit 0: Page 0
                     1=Display
                     0=No display
                   FFh: No mode change (same behavior as 01h when screen mode is changed)
                   * Only page 0 can be specified in color graphic mode
Output           AH=Exit status
                   00h=Normal termination
                   05h=Unauthorized call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 02h (Hi-Res)
Classification   GRAPH BIOS
Name             Drawing area specification (GVIEW)
Target           Hi-Res
Input            AH=02h
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=Upper left X coordinate of viewport (X1)
                 DS:0102h(WORD)=Upper left Y coordinate of viewport (Y1)
                 DS:0104h(WORD)=Lower right X coordinate of viewport (X2)
                 DS:0106h(WORD)=Lower right Y coordinate of viewport (Y2)
                   * X1<X2, Y1<Y2 must be satisfied
                 DS:0108h(BYTE)=Color to fill inside viewport
                   00-0Fh: Specified palette number
                   FFh: No filling
                 DS:0109h(BYTE)=Color to draw outer frame of viewport
                   00-0Fh: Specified palette number
                   FFh: Do not draw the outer frame
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                   AL=Undefined
Explanation    o
Related


INT 1Dh - Function 03h (Hi-Res)
Classification   GRAPH BIOS
Name             Foreground color, background color specification (GCOLOR1)
Target           Hi-Res
Input            AH=03h
                 DS=Graphics BIOS work area segment
                 DS:0100h(BYTE)=Background color
                   00-0Fh: Specified palette number
                   FFh: Do not change
                 DS:0101h(BYTE)=Foreground color
                   00-0Fh: Specified palette number
                   FFh: Do not change
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 04h (Hi-Res)
Classification   GRAPH BIOS
Name             Palette number and display color (GCOLOR2)
Target           Hi-Res
Input            AH=04h
                 DS=Graphic BIOS work area segment
                 DS:0100h(BYTE)=Palette number
                   00-0Fh: Specified palette number (color graphic mode only)
                   80h: Black palette register (monochrome graphic mode only)
                   81h: White palette register (monochrome graphic mode only)
                   FFh: All palette registers (color graphic mode only)
                 ■When palette number is other than FFh
                   DS:0101h(WORD)=Display color code (0000-0FFFh)
                 ■When palette number is FFh
                   DS:0000h(BYTE)=Palette number (set FFh)
                   DS:0001h(WORD)=Display color for palette number 0 (0000-0FFFh)
                   DS:0003h (WORD) = Display color of palette number 1 (0000-0FFFh)
                      :                       :
                   DS:001Fh (WORD) = Display color of palette number 15 (0000-0FFFh)
Output           AH = End status
                   00h = Normal end
                   05h = Illegal call
                 AL = Undefined
Explanation    o
Related


INT 1Dh - Function 05h (Hi-Res)
Classification   GRAPH BIOS
Name             Clear drawing area (GCLS)
Target           Hi-Res
Input            AH = 05h
                 DS = Graphic BIOS work area segment
Output           AH = End status
                   00h = Normal end
                   05h = Illegal call
                 AL = Undefined
Explanation    o
Related


INT 1Dh - Function 06h (Hi-Res)
Classification   GRAPH BIOS
Name             Write dot (GPSET)
Target           Hi-Res
Input            AH=06h
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate to write dot
                 DS:0102h(WORD)=Y coordinate to write dot
                 DS:0104h(BYTE)=Palette number
                   00-0Fh: Specified palette number
                   FFh: Write with palette number according to operation mode specified by AL register
                 AL=Operation mode specification (when DS:0104h=FFh)
                   01h: Write with foreground color palette number
                   02h: Write with background color palette number
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 07h(Hi-Res)
Classification   GRAPH BIOS
Name             Drawing lines and rectangles (GLINE)
Target           Hi-Res
Input            AH=07h
                 DS=Segment of work area for graphic BIOS
                   (1) For lines and rectangles
                     DS:0100h(WORD)=X coordinate of drawing start point (X1)
                     DS:0102h(WORD)=Y coordinate of drawing start point (Y1)
                     DS:0104h(WORD)=X coordinate of drawing end point (X2)
                     DS:0106h(WORD)=Y coordinate of drawing end point (Y2)
                     DS:0108h(BYTE)=Color of rectangle frame
                       00-0Fh: Palette number
                       FFh: Draw with foreground color
                     DS:0109h(BYTE)=Drawing code
                       00h: Line drawing specification
                       01h: Rectangle drawing specification
                       02h: Rectangle fill drawing specification
                   ■When drawing code=Line/Rectangle drawing specification
                     DS:010Ah(BYTE)=Switch (Whether or not to specify a line style)
                       00h: No line style specified
                       01h: Line style specified
                     DS:010Bh(WORD)=Line style
                       * Specify the line pattern for drawing straight lines and rectangles in 16 bits.
                         FFFFh to draw a solid line. Bit 0 corresponds to the left side of the screen,
                         bit 15 corresponds to the right side of the screen.
                   ■When drawing code = Rectangle fill drawing is specified
                     DS:010Ah(BYTE)=Switch
                       00h: Do not specify fill color or tile pattern
                       01h: Specify rectangle fill color
                       02h: Specify tile pattern
                     DS:010Bh(BYTE)=Rectangle fill color (valid when switch = 01h)
                       00-0Fh: Fill with specified palette number
                     DS:010Ch(BYTE)=Not used
                     DS:010Dh(BYTE)=Tile pattern length (valid when switch = 02h)
                       00-FFh: Tile pattern storage area length
                     DS:010Eh(DWORD)=Top address of tile pattern storage area (valid when switch = 02h)
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 08h (Hi-Res)
Classification   GRAPH BIOS
Name             Drawing circles and ellipses (GCIRCLE)
Target           Hi-Res
Input            AH=08h
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate of center point (CX)
                 DS:0102h(WORD)=Y coordinate of center point (CY)
                 DS:0104h(WORD)=Radius in X-axis direction (RX)
                 DS:0106h(WORD)=Radius in Y-axis direction (RY)
                 DS:0108h(BYTE)=Circumference drawing color
                   00-0Fh: Palette number
                   FFh: Draw with foreground color
                 DS:0109h(BYTE)=Flag
                   bit 7: Unused
                   bit 6: Tile pattern specification (1=Yes, 0=No)
                   bit 5: Fill (1=Yes, 0=No)
                   bit 4: Drawing specification method when start point and end point match¥
                     (1=Draw only matching points, 0=Draw entire ellipse)
                   bit 3: Draw end line (1=Yes, 0=No)
                   bit 2: Specify end point (1=Yes, 0=No)
                   bit 1: Draw start line (1=Yes, 0=No)
                   bit 0: Specify start point (1=Yes, 0=No)
                 DS:010Ah(WORD)=X coordinate of start point (SX)
                 DS:010Ch(WORD)=Y coordinate of start point (SY)
                 DS:010Eh(WORD)=X coordinate of end point (EX)
                 DS:0110h(WORD)=Y coordinate of end point (EY)
                   ■Flag When bit 6,5=01b
                     DS:0112h(BYTE)=Color to fill inside of figure
                       00-0Fh: Palette number
                       FFh: Same as color of circumference
                   ■Flag When bit 6,5=11b
                     DS:0112h(BYTE)=Tile pattern length
                       00-FFh: Tile pattern storage area length
                     DS:0113h(DWORD)=Start address of tile pattern storage area
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                   06h=Overflow
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 09h(Hi-Res)
Classification   GRAPH BIOS
Name             Fill with specified color (GPAINT1)
Target           Hi-Res
Input            AH=09h
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate of start point of filling
                 DS:0102h(WORD)=Y coordinate of the fill start point
                 DS:0104h(BYTE)=Area color palette number
                   00-0Fh: Specified palette number
                   FFh: Fill with foreground color
                 DS:0105h(BYTE)=Border color palette number
                   00-0Fh: Specified palette number
                   FFh: Foreground color is specified as border color
                 DS:0106h(WORD)=Last offset address of work area
                 DS:0108h(WORD)=First offset address of work area
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                   07h=Processing interrupted due to insufficient work area
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 0Ah(Hi-Res)
Classification   GRAPH BIOS
Name             Fill with tile pattern (GPAINT2)
Target           Hi-Res
Input            AH=0Ah
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate of fill start point
                 DS:0102h(WORD)=Y coordinate of fill start point
                 DS:0104h(BYTE)=Tile pattern length
                 01-FFh(for monochrome)
                 04-FFh(for color)
                 DS:0105h(DWORD)=Start address of tile pattern storage area
                 DS:0109h(BYTE)=Border color palette number
                   00-0Fh: Specified palette number
                   FFh: Foreground color is specified as border color
                 DS:010Ah(WORD)=Final offset address of work area
                 DS:010Ch(WORD)=Start offset address of work area
Output           AH=Exit status
                   00h=Normal termination
                   05h=illegal call
                   07h=processing interrupted due to insufficient work area
                 AL = indefinite
Explanation    o
Related


INT 1Dh - Function 0Bh (Hi-Res)
Classification   GRAPH BIOS
Name             Screen image storage (GGET)
Target           Hi-Res
Input            AH = 0Bh
                 DS = Graphic BIOS work area segment
                 DS: 0100h (WORD) = upper left X coordinate of specified area (X1)
                 DS: 0102h (WORD) = upper left Y coordinate of specified area (Y1)
                 DS: 0104h (WORD) = lower right X coordinate of specified area (X2)
                 DS: 0106h (WORD) = lower right Y coordinate of specified area (Y2)
                 DS: 0108h (DWORD) = start address of storage area
                 DS: 010Ch (WORD) = length of storage area
Output           AH = end status
                   00h = Normal termination
                   05h = Invalid call
                 AL = Undefined
Explanation    o
Related


INT 1Dh - Function 0Ch (Hi-Res)
Classification   GRAPH BIOS
Name             Screen image recovery (GPUT1)
Target           Hi-Res
Input            AH=0Ch
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=Upper left X coordinate of drawing area (X1)
                 DS:0102h(WORD)=Upper left Y coordinate of drawing area (Y1)
                 DS:0104h(DWORD)=Start address of storage area
                 DS:0108h(WORD)=Length of storage area
                 DS:010Ah(BYTE)=Drawing mode
                   00h=Draw image from storage area as is
                   01h=Draw image from storage area by NOT
                   02h=Draw image from storage area and original screen pattern by OR
                   03h=Draw image from storage area and original screen pattern by AND
                   04h=Draw image from storage area and original screen pattern by XOR
                 DS:010Bh(BYTE)=Color switch
                   00h: Handle data in storage area in current mode
                   01h: Handle data in storage area in monochrome mode
                     ■When color switch=01h
                       DS:010Ch(BYTE)=Specify palette number when drawing white dots in the drawing pattern stored in monochrome mode (00-0Fh)
                       DS:010Dh(BYTE)=Specify palette number when drawing black dots in the drawing pattern stored in monochrome mode (00-0Fh)
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 0Dh(Hi-Res)
Classification   GRAPH BIOS
Name             Japanese drawing (GPUT2)
Target           Hi-Res
Input            AH=0Dh
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate of the top left corner of the drawing area
                 DS:0102h(WORD)=Y coordinate of the top left corner of the drawing area
                 DS:0104h(WORD)=Japanese JIS code
                 DS:0106h(BYTE)=Drawing mode
                   00h=Draw Japanese characters as they are
                   01h=Draw Japanese characters using NOT
                   02h=Draw Japanese characters using OR with the original screen pattern
                   03h=Draw Japanese characters using AND with the original screen pattern
                   04h=Draw Japanese characters using XOR with the original screen pattern
                 DS:0107h(BYTE)=Color switch
                   00h: No color specified
                   01h: Foreground and background colors specified
                 DS:0108h(BYTE)=Foreground color
                 DS:0109h(BYTE)=Background color
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 0Eh (Hi-Res)
Classification   GRAPH BIOS
Name             Screen image movement (GROLL)
Target           Hi-Res
Input            AH=0Eh
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=Number of dots to move up and down
                   +1 to +935: Upward
                   -935 to -1: Downward
                 DS:0102h(WORD)=Number of dots to move left and right
                   +1 to +1119: Leftward
                   -1119 to -1: Rightward
                   * In reality, it moves by the nearest multiple of 8 that is less than or equal to the absolute value of the specified value
                 DS:0104h(BYTE)=Clear flag
                   00h: Fill the remaining area after the move with palette 0
                   01h: Fill the remaining area after the move with the background color
Output           AH=End status
                   00h=Normal end
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 0Fh (Hi-Res)
Classification   GRAPH BIOS
Name             Get palette number of specified dot (GPOINT2)
Target           Hi-Res
Input            AH=0Fh
                 DS=Segment of work area for graphic BIOS
                 DS:0100h(WORD)=X coordinate of dot for which palette number is required
                 DS:0102h(WORD)=Y coordinate of dot for which palette number is required
Output           AH=End status
                   00h=Normal end
                   05h=Illegal call
                 ■In monochrome graphic mode
                   AL=00h: Black
                      01h: White
                 ■In color graphic mode
                   AL=00-0Fh: Palette number
                   FFh: Specified coordinate is outside the viewport of the active screen
Explanation    o
Related


INT 1Dh - Function 10h (Hi-Res)
Classification   GRAPH BIOS
Name             Display area setting (GSCROLL)
Target           Hi-Res
Input            AH=10h
                 DS=Graphics BIOS work area segment
                 DS:0100h (WORD)=Display start Y coordinate
Output           AH=Exit status
                   00h=Normal end
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 11h
Classification   GRAPH BIOS
Name             Graphic screen display start (GSTART)
Target           Hi-Res
Input            AH=11h
                 DS=Graphics BIOS work area segment
Output           AH=Exit status
                   00h=Normal end
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 12h
Classification   GRAPH BIOS
Name             Graphic screen display stop (GSTOP)
Target           Hi-Res
Input            AH=12h
                 DS=Graphic BIOS work area segment
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related


INT 1Dh - Function 13h
Classification   GRAPH BIOS
Name             Graphic BIOS termination (GTERM)
Target           Hi-Res
Input            AH=13h
                 DS=Graphic BIOS work area segment
Output           AH=Exit status
                   00h=Normal termination
                   05h=Illegal call
                 AL=Undefined
Explanation    o
Related